THE HABSBURG DYNASTY AND THE IBERIAN UNION (1580–1640) Following the death of King Sebastian in 1578 and Cardinal-King Henry in 1580, Portugal experienced another succession crisis. Philip II of Spain became King Philip I of Portugal. Portugal and Spain were united under the Habsburg monarchy while retaining separate laws and administrative institutions. The Iberian Union continued for sixty years. Growing opposition to Habsburg rule eventually led to the restoration of an independent Portuguese monarchy. THE RESTORATION AND THE HOUSE OF BRAGANZA (1640–1750) On December 1, 1640, Portuguese nobles overthrew Habsburg authority and proclaimed the Duke of Braganza as King John IV. The Portuguese Restoration War continued until Spain formally recognized Portuguese independence in 1668. Under John V, who ruled from 1706 to 1750, wealth from Brazil supported royal architecture, religious institutions, and artistic patronage. The Palace of Mafra remains one of the most important monuments of his reign. THE ROYAL COURT IN BRAZIL AND THE LIBERAL MONARCHY (1807–1834) Following the Napoleonic invasion of Portugal in 1807, the Portuguese royal court relocated to Brazil. In 1815, the United Kingdom of Portugal, Brazil, and the Algarves was established. King John VI returned to Portugal in 1821. His son Pedro proclaimed Brazilian independence in 1822 and became Emperor Pedro I of Brazil. Dynastic and constitutional conflicts subsequently led to the Portuguese Liberal Wars. In 1834, constitutional monarchy was secured following the defeat of the absolutist forces of Miguel I. THE FINAL MONARCHS AND THE PORTUGUESE REPUBLIC (1834–1910) During the nineteenth century, Portugal developed under a constitutional monarchy. Queen Maria II and her successors introduced political, administrative, and economic reforms. The marriage of Maria II to Ferdinand of Saxe-Coburg and Gotha established a new dynastic connection with European royal houses. In 1908, King Carlos I and Crown Prince Luís Filipe were assassinated in Lisbon. Manuel II succeeded his father but was overthrown during the Republican Revolution of October 5, 1910. The Portuguese monarchy came to an end, and the royal family went into exile.